package com.windfone.service;

import java.util.List;

import com.windfone.model.Gift;
import com.windfone.model.GiftUser;
import com.windfone.model.Message;

public interface GiftService {
	public int addGift(Gift bean);
	public int delGift(Gift bean);
	public int updateGift(Gift bean);
	public Gift getGift(Gift bean);
	public int countTotal();
	public int getAllRecorderNumber(String whereCondition);
	public List<Gift> getAllGift(int beginRecord, String whereCondition);
	public int getAllUserAskGiftRecorderNumber(String whereCondition);
	public int updateUserAskGift(GiftUser bean);
	public int deleteUserAskGift(GiftUser bean);
	public List<GiftUser> getAllUserAskGift(int beginRecord, String whereCondition );
	
	public int addMessage(Message bean);
	public int delMessage(Message bean);
	public int updateMessage(Message bean);
	public Message getMessage(Message bean);
//	public int countTotal();
	public int getAllMessageRecorderNumber(String whereCondition);
	public List<Message> getAllMessage(int beginRecord, String whereCondition);
	
	public int addUserGift(int giftId,int userId );
}
